<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'indexHead1.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body bgcolor="#FAFBE7">
   	<center>
			<table>
				<tr align="center">
					<td>
						<div style="position: absolute; top: 30px; right: 20px; background-color: #69CDFF">
							<%
								if (request.getAttribute("check") != null) {
							%>
							<font color="red">${check}</font>
							<%
								}
							%>
						</div>
						<div align="left" style="width: 150px; height: 20px">
							<%
								if (session.getAttribute("userName") != null) {
							%>

							<%=session.getAttribute("userName")%>
							<a href="usermgr/updatePassword.jsp" target="downFrame">修改密码</a>
							<%
								} else {
							%>
							未登录
							<font color="#CE2448" size=4>
							<a href="usermgr/userLogin.jsp" target="downFrame">登录</a> 
							<a href="usermgr/register.jsp" target="downFrame">注册</a>
							</font>
							<%
								}
							%>
						</div>
					</td>
					<td>
						<table>
							<tr>
								<td rowspan="2" width="30" height="25">
									<img src="<%=basePath%>images/ww.jpg" width="60" height="50">
								</td>
								<td>
									<font>今日点餐</font>
								</td>
							</tr>
							<tr>
								<td>
									<font>吃好每餐，健康每一天</font>
								</td>
							</tr>

						</table>
					</td>
					<td width="600">
						<font color="#CE2448" size=9>上游订餐系统</font>
					</td>
					<td>
						 <div align="right" style="width: 120px; height: 20px">
							<%
								if (session.getAttribute("userPermission") !=null && session.getAttribute("userPermission").equals("1")) {
							%>
						
						 <a href="manager/mananger.jsp" target="downFrame">后台管理</a>
						 <font color="#CE2448" size=4>
						 <a	href="cleanSession.action" target="downFrame">退出</a>
						</font>
						<%
							}else{
							
							%>
							
						 </div>
						
						<font color="#CE2448" size=4>
						 <a	href="cleanSession.action" target="downFrame">退出</a>
						</font>
						<%
						}
						 %>
					</td>
				</tr>

			</table></center>
  </body>
</html>
